package rad.framework.mda.generator.template.main.webapp.webinf;

public class Components
{
  protected static String nl;
  public static synchronized Components create(String lineSeparator)
  {
    nl = lineSeparator;
    Components result = new Components();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + NL + "<components xmlns=\"http://jboss.com/products/seam/components\"" + NL + "\txmlns:core=\"http://jboss.com/products/seam/core\"" + NL + "\txmlns:transaction=\"http://jboss.com/products/seam/transaction\"" + NL + "\txmlns:security=\"http://jboss.com/products/seam/security\"" + NL + "\txmlns:web=\"http://jboss.com/products/seam/web\"" + NL + "\txmlns:document=\"http://jboss.com/products/seam/document\"" + NL + "\txmlns:theme=\"http://jboss.com/products/seam/theme\"" + NL + "\txmlns:international=\"http://jboss.com/products/seam/international\"" + NL + "\txmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" + NL + "\txsi:schemaLocation=\"http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd" + NL + "\t\t\t\thttp://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.0.xsd" + NL + "\t\t\t\thttp://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd" + NL + "\t\t\t\thttp://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.0.xsd " + NL + "\t\t\t\thttp://jboss.com/products/seam/document http://jboss.com/products/seam/document-2.0.xsd   " + NL + "\t\t\t\thttp://jboss.com/products/seam/theme http://jboss.com/products/seam/theme-2.0.xsd" + NL + "\t\t\t\thttp://jboss.com/products/seam/international http://jboss.com/products/seam/international-2.0.xsd" + NL + "\t\t\t\thttp://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd\">" + NL + "\t" + NL + "\t<core:init jndi-pattern=\"@jndiPattern@\" debug=\"false\"/>" + NL + "\t" + NL + "\t<!-- 20 minute conversation timeout -->" + NL + "\t<!-- half second wait for conversation lock on concurrent requests -->" + NL + "\t<core:manager conversation-timeout=\"1200000\" concurrent-request-timeout=\"500\"" + NL + "\t\tconversation-id-parameter=\"cid\"/>" + NL + "\t" + NL + "\t<core:resource-loader>" + NL + "\t\t<core:bundle-names>" + NL + "\t\t\t<value>application</value>" + NL + "\t\t\t<value>messages</value>" + NL + "\t\t\t<value>rules</value>" + NL + "\t\t</core:bundle-names>" + NL + "\t</core:resource-loader>" + NL + "\t\t" + NL + "\t<web:logging-filter url-pattern=\"*.seam\"/>" + NL + "\t" + NL + "\t<web:ajax4jsf-filter force-parser=\"false\" enable-cache=\"true\" regex-url-pattern=\".*\\.seam|.*\\.css|.*/a4j.*\" />" + NL + "\t" + NL + "\t<web:context-filter url-pattern=\"/export/*\"/>" + NL + "\t" + NL + "\t<web:multipart-filter create-temp-files=\"false\" " + NL + "                      max-request-size=\"1000000\" " + NL + "                      url-pattern=\"*.seam\"/>" + NL + "                                                              \t" + NL + "\t<transaction:ejb-transaction/>" + NL + "\t" + NL + "\t<document:document-store use-extensions=\"true\" error-page=\"/pdf/pdfMissing.seam\" />" + NL + "\t" + NL + "\t<event type=\"org.jboss.seam.security.notLoggedIn\">" + NL + "\t\t<action execute=\"#{redirect.captureCurrentView}\"/>" + NL + "\t</event>" + NL + "    " + NL + "\t<event type=\"org.jboss.seam.security.postAuthenticate\">" + NL + "\t\t<action execute=\"#{redirect.returnToCapturedView}\"/>" + NL + "\t</event>" + NL + "" + NL + "\t<theme:theme-selector cookie-enabled=\"true\">" + NL + "\t    <theme:available-themes>" + NL + "\t        <value>default</value>" + NL + "\t        <value>tabbed</value>" + NL + "\t        <value>tree</value>" + NL + "\t    </theme:available-themes>" + NL + "\t</theme:theme-selector>" + NL + "" + NL + "\t<international:locale-selector cookie-enabled=\"true\"/>" + NL + "" + NL + "</components>" + NL;
  protected final String TEXT_2 = NL;

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    

    org.eclipse.uml2.uml.Model uml2Model = (org.eclipse.uml2.uml.Model) argument;
    stringBuffer.append(TEXT_1);
    stringBuffer.append(TEXT_2);
    return stringBuffer.toString();
  }
}
